require 'win32ole'

begin
  autoit = WIN32OLE.new('AutoItX3.Control')
    puts 'test'
  loop do
  autoit.ControlClick("Microsoft Internet Explorer",'', 'OK')
  autoit.ControlClick("Security Information",'', '&Yes')
  autoit.ControlClick("Security Alert",'', '&Yes')
  autoit.ControlClick("Microsoft Internet Explorer",'', 'Retry')
  sleep(5)
  end
        
  rescue Exception => e
    puts e
  end